package io.renren.modules.generator.service;

import io.renren.modules.generator.entity.GrassEntity;

import java.util.List;
import java.util.Map;

/**
 * 草场数据管理
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-04-18 17:30:13
 */
public interface GrassService {
	
	GrassEntity queryObject(Integer grassId);
	
	List<GrassEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(GrassEntity grass);
	
	void update(GrassEntity grass);
	
	void delete(Integer grassId);
	
	void deleteBatch(Integer[] grassIds);

	List<GrassEntity> nameList(Map<String, Object> map);

	int nameTotal(Map<String, Object> map);
}
